package com.example.schoolexam2.config;

import com.example.schoolexam2.intercepter.LoginIntercepter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class intervepterConfig implements WebMvcConfigurer {
//    @Autowired
//    private LoginIntercepter intercepter;
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        // 拦截user下的api
//        registry.addInterceptor(intercepter).addPathPatterns("/user/**").addPathPatterns("/exam/**");
//    }
}
